package com.huabo.audit.oracle.entity;

import java.math.BigDecimal;
import java.util.Date;
import java.util.Set;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.huabo.audit.config.IgnoreSwaggerParameter;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

@TableName("TBL_NBSJ_RISK")
@Data
@ApiModel("实体类")
@Accessors(chain = true)
public class TblNbkzRiskEntity {
	
//	private static final long serialVersionUID = 1L;
	
	@TableId(value = "riskid", type= IdType.AUTO)
	@ApiModelProperty(value="")
	private BigDecimal riskid;
	
	@TableField(value = "riskname")
	@ApiModelProperty(value="")
	private String riskname;
	
	@TableField(value = "risknumber")
	@ApiModelProperty(value="")
	private String risknumber;
	
	@TableField(value = "riskdes")
	@ApiModelProperty(value="")
	private String riskdes;
	
	@TableField(value = "occureddate")
	@ApiModelProperty(value="")
	@DateTimeFormat(pattern = "yyyy-MM-dd", iso = DateTimeFormat.ISO.DATE_TIME)
	private Date occureddate;
	
	@TableField(value = "discovereddate")
	@ApiModelProperty(value="")
	@DateTimeFormat(pattern = "yyyy-MM-dd", iso = DateTimeFormat.ISO.DATE_TIME)
	private Date discovereddate;
	
	@TableField(value = "losseventcategory")
	@ApiModelProperty(value="")
	private String losseventcategory;
	
	@TableField(value = "riskeventdescription")
	@ApiModelProperty(value="")
	private String riskeventdescription;
	
	@TableField(value = "tblOrganiDem")
	@ApiModelProperty(value="", hidden = true)
	@IgnoreSwaggerParameter
	private TblOrganization tblOrganiDem;
	
	@TableField(value = "tblAttachments")
	@ApiModelProperty(value="", hidden = true)
	@IgnoreSwaggerParameter
	private Set tblAttachments;
	
	@TableField(value = "tblproblemTargets")
	@ApiModelProperty(value="", hidden = true)
	@IgnoreSwaggerParameter
	private Set<TblAssessTarget> tblproblemTargets;
	
	@TableField(value = "createDate")
	@ApiModelProperty(value="", hidden = true)
	private Date createDate;
	
	@TableField(value = "tblStaff")
	@ApiModelProperty(value="", hidden = true)
	@IgnoreSwaggerParameter
	private TblStaff tblStaff;
	
	@TableField(value = "stype")
	@ApiModelProperty(value="")
	private String stype;
	
	@TableField(value = "sysOrgid")
	@ApiModelProperty(value="相关部门ids")
	private String sysOrgid;
	
	@TableField(value = "sysOrgName")
	@ApiModelProperty(value="", hidden = true)
	private String sysOrgName;
	
	@TableField(value = "createorid")
	@ApiModelProperty(value="发现人id")
	private String createorid;
	
	@TableField(value = "ORGID")
	@ApiModelProperty(value="责任部门id")
	private Integer orgid;
	
	
}
